def process_file(file) -> str:
    """处理上传的需求文档文件"""
    try:
        # 读取文件内容
        content = file.read().decode('utf-8')
        return content
    except Exception as e:
        raise Exception(f"文件处理失败: {str(e)}") 